#ifndef MYDRAGLIST_H
#define MYDRAGLIST_H

#include <QListWidget>
class MyDraglist : public QListWidget
{
    Q_OBJECT
public:
    explicit MyDraglist(QWidget *parent = nullptr);

    static QString myMimeType() { return QStringLiteral("MyDraglist/text-icon-icon_hover"); }

protected:
    void mousePressEvent(QMouseEvent *event) override;
    void mouseReleaseEvent(QMouseEvent *event) override;
    void mouseMoveEvent(QMouseEvent *event) override;
    void dragEnterEvent(QDragEnterEvent *event) override;
    void dragLeaveEvent(QDragLeaveEvent *event) override;
    void dragMoveEvent(QDragMoveEvent *event) override;

    void dropEvent(QDropEvent *event) override;


private:
    QPoint startPos;
};

#endif // MYDRAGLIST_H
